package view.inventory
{
import flash.display.DisplayObject;
import flash.geom.Point;

import view.component.window.WindowComponent;
import view.interfaces.IInventoryUI;

/**
 * InventoryUI
 * @author jliang
 * 
 */
public class InventoryUI extends WindowComponent implements IInventoryUI
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function InventoryUI()
	{
		super();
	}
    //==========================================================================
    //  Properties
    //==========================================================================
    public function get displayObject():DisplayObject
    {
        return this;
    }
	//==========================================================================
	//  Overridden methods: Component
	//==========================================================================
	override protected function get skinReference():String
	{
		return "swf.ui.InventoryUISkin";
	}
	
	override protected function get proxyMapping():Array
	{
		return [ 
			{ skin:"", classRef: InventoryUIProxy, id:"window" }
		];
	}
	
	override public function get width():Number
	{
		return 619;
	}
	
	override public function get height():Number
	{
		return 460;
	}
	//==========================================================================
	//  Public methods
	//==========================================================================	
	public function showInventory(type:String = null):void
	{		
		InventoryUIProxy(window).showInventory(type);
	}
	
	public function refresh():void
	{
		InventoryUIProxy(window).refresh();
	}
}
}


